<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<script type="text/javascript">
    var yui = {
        _getDoc:function (element) {
            var doc = Y.config.doc;
            if (element) {
                doc = (element[NODE_TYPE] === 9) ? element : // element === document
                        element[OWNER_DOCUMENT] || // element === DOM node
                                element.document || // element === window
                                Y.config.doc; // default
            }
            return doc;
        },
        _getWin:function (element) {
            var doc = Y_DOM._getDoc(element);
            return doc[DEFAULT_VIEW] || doc[PARENT_WINDOW] || Y.config.win;
        }
    };
</script>
</body>
</html>